Development Build and Release Build
The two kinds of build Gbabel makes, why a development build stops and tells you what broke a rule, and how to make each one.
Gbabel can make your game in two ways. They are the same game. What differs is how much the game watches itself while it runs.
Development Build
A Development Build is what you get every time you press â–¶ Build & Play (or Ctrl+B, or F5). It is made for the time when you are still making the game.
- The safety checks are on. The game keeps an eye on itself while it runs: did something ask for a thing that does not exist, did an object that promised never to move go and move, did the game run out of something the console only has a few of (sprites, palettes, row-by-row effects)?
- It stops, and says what broke. When a check fails, the game does not carry on and do something strange. It stops and shows a plain message that names the object, the room or the call that broke the rule. That is on purpose: a stop with a name on it is much easier to fix than a game that merely looks wrong.
- It is a little bigger and a little slower. The checks take room in the game and a little time every frame. A game that feels a bit heavy in a Development Build can feel fine in a Release Build.
Release Build
A Release Build is the one you give to players.
- The safety checks are off. The game does not stop for anything. It trusts you.
- It is smaller and faster. There is nothing to check, so the game takes less room and runs lighter.
- The debug panel and the names of your rooms and objects are left out. Players never see them, so they only take up room. To keep them in, tick Keep the debug overlay in the finished game in Project Settings.
- It does not warn you. If something in the game breaks a rule, a Release Build will not tell you. It does the nearest harmless thing it can, such as drawing a picture plain, or it may misbehave. This is why you make and test your game in a Development Build first, and only make the Release Build when everything in it works.
- A Release Build is always a clean build, so it takes a little longer to make than a Build & Play.
How to make each one
| You want | Do this |
|---|
| A Development Build | Click â–¶ Build & Play on the toolbar, or press Ctrl+B or F5. |
| A Release Build | Click Build menu ▾ (right beside Build & Play) and choose Release Build & play. |
Both builds start in your emulator when they finish. Making a Release Build does not change your project's saved settings, and the next â–¶ Build & Play goes back to a Development Build.
Which one should I use?
- While you make the game, use Build & Play. If it stops with a message, the message tells you what to fix. The Problems list and the budget gauges (see Building and reading its problems) help you find trouble before the game even starts.
- To find out how fast the game really runs, or how big it really is, make a Release Build. A room that lags in a Development Build may not lag in a Release Build (see Frame profiler).
- For the copy you hand to players, make a Release Build, and play it through once first.
Some pages of this manual say what a Release Build does differently, for example Never moves, which is checked in a Development Build and trusted in a Release Build. For what ends up inside the finished game, see What goes into the ROM.